#### Replication of "Endorsements from Republican politicians can increase confidence in U.S. elections"
#### Katherine Clayton and Robb Willer

***

#### Description
Since the 2020 U.S. presidential election, perceptions of the validity of the outcome and broader trust in the American electoral process have reached historically low levels among Republicans. While this trend has potentially harmful consequences for democratic stability, there is little research on how beliefs that an election was fair -- and trust in the electoral process more generally -- can be restored. In a preregistered survey experiment (n = 2101), we find that viewing real messages from Republican politicians defending the legitimacy of the 2020 election increased faith in the election’s outcome and in the broader electoral process among Republican voters, compared to either a neutral control condition or to comparable messages from Democratic politicians. These effects are statistically mediated by shifts in voters’ perceptions of elite Republican opinion about the 2020 election, highlighting a potentially useful intervention for efforts to restore faith in elections going forward. Notably, exposure to messages from Republican politicians affirming the election’s legitimacy did not significantly decrease support for the Republican Party, suggesting that Republican politicians who endorse the 2020 election results might not face backlash from voters.

#### Files included in this package:

- `_README.html` -- generated by `README.Rmd`
- `_README.Rmd` (this file)
- `clayton_willer.csv` -- de-identified data
- `clayton_willer.R` -- script
    
#### Program: 

`R` (version 4.0.5)

#### Additional programs required: 

- `tidyverse` (version 1.3.1)
- `estimatr` (version 0.30.2)
- `scales` (version 1.1.1)
- `mediation` (version 4.5.0)
- `broom` (version 0.7.6)
- `magrittr` (version 2.0.1)
- `TOSTER` (version 0.3.4)

#### Process of replication:

1. For best results, restart R using Ctrl+FN+F10 (Mac) or Ctrl+shift+F10 (Windows and Linux) before running script.

2. Run `clayton_willer.R`


#### Most recent date of successful replication:

December 12, 2022
